﻿using System;
using System.ComponentModel.DataAnnotations;

namespace KMF.WebUI.Models
{
    public class ConfigFilterModel
    {
        public bool activePricRange { get; set; }
        public bool activeProvider { get; set; }
        public bool activeColor { get; set; }
        public bool activeSize { get; set; }
        public bool activeRate { get; set; }
        public bool activeAttr { get; set; }

        //[RegularExpression("[1-9][0-9]*", ErrorMessage = "The value must be a whole number.")]
        public decimal priceRangeMin { get; set; }
        public decimal priceRangeMinDefault { get; set; }
        public decimal priceRangeMax { get; set; }
        public decimal priceRangeMaxDefault { get; set; }
        public int rangeNumber { get; set; }
        public string applyTypePriceRange { get; set; }
        public string applyTypeProvider { get; set; }
        public string applyTypeColor { get; set; }
        public string applyTypeSize { get; set; }
        public string applyTypeRate { get; set; }
        public string applyTypeAttr { get; set; }

        public string CategoriesPriceRange { get; set; }
        public string CategoriesProvider { get; set; }
        public string CategoriesColor { get; set; }
        public string CategoriesSize { get; set; }
        public string CategoriesRate { get; set; }
        public string CategoriesAttr { get; set; }

        [Range(1, 100)]
        public int showNumberLineProvider { get; set; }
        [Range(1, 100)]
        public int showNumberLineColor { get; set; }
        [Range(1, 100)]
        public int showNumberLineSize { get; set; }
        [Range(1, 100)]
        public int showNumberLineAttr { get; set; }

        public bool ShowNameProvider { get; set; }
        public bool ShowNameColor { get; set; }
    }
}